'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = serialize;

var _param = require('./param');

var _param2 = _interopRequireDefault(_param);

var _serializeArray = require('./serializeArray');

var _serializeArray2 = _interopRequireDefault(_serializeArray);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * 以字符串形式获取表单数据
 * @param {Selector | Element} form
 * @returns {String}
 */
function serialize(form) {
  return (0, _param2.default)((0, _serializeArray2.default)(form));
}